﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RandomStringGenerator
{
    class Program
    {
        static void Main(string[] args)
        {
            Random rnd = new Random();
            string[] idStrings = new string[5];

            for (int i = 0; i < 5; i++)
            {
                StringBuilder builder = new StringBuilder("00000");
                for (int j = 0; j < 5; j++)
                {
                    int randomNumber = rnd.Next() % 3;
                    switch (randomNumber)
                    {
                        case 0:
                            randomNumber = rnd.Next() % 10 + 48;
                            break;
                        case 1:
                            randomNumber = rnd.Next() % 26 + 65;
                            break;
                        case 2:
                            randomNumber = rnd.Next() % 26 + 97;
                            break;
                    }
                    builder[j] = Convert.ToChar(randomNumber);
                }
                idStrings[i] = builder.ToString();
            }
            for (int i = 0; i < idStrings.Count(); i++)
            {
                Console.WriteLine(idStrings[i]);
            }
            Console.ReadKey();
        }
    }
}
